package com.wlyy.bcwlw.common.export2excel.entity;

import com.wlyy.bcwlw.common.export2excel.inter.ICellValueSetter;

public class Export2ExcelColumn {

	private String colName;
	
	private Object value;
	
	/**跨行处理*/
	private Integer rowspan;
	
	private ICellValueSetter cellValueSetter;
	
	public Export2ExcelColumn(String colName,Object value){
		this.colName = colName;
		this.value = value;
	}
	
	public Export2ExcelColumn(String colName,Object value,ICellValueSetter cellValueSetter){
		this.colName = colName;
		this.value = value;
		this.cellValueSetter = cellValueSetter;
	}

	public String getColName() {
		return colName;
	}

	public void setColName(String colName) {
		this.colName = colName;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public Integer getRowspan() {
		return rowspan;
	}

	public void setRowspan(Integer rowspan) {
		this.rowspan = rowspan;
	}

	public ICellValueSetter getCellValueSetter() {
		return cellValueSetter;
	}

	public void setCellValueSetter(ICellValueSetter cellValueSetter) {
		this.cellValueSetter = cellValueSetter;
	}
	
	public Export2ExcelColumn clone(){
		Export2ExcelColumn clone = new Export2ExcelColumn(this.getColName(), this.getValue(), this.getCellValueSetter());
		clone.setRowspan(this.getRowspan());
		return clone;
	}
	
	
	
	
}
